home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / classic.jar / skin / classic / global / menu.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2008-02-22  |  5.7 KB  |  231 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-1999
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== menu.css =======================================================
  40.   == Styles used by XUL menu-related elements.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44.  
  45. /* ::::: menu/menuitem ::::: */
  46.  
  47. menu, menuitem {
  48.   -moz-appearance: menuitem;
  49.   -moz-box-align: center;
  50.   max-width: 42em;
  51.   color: MenuText;
  52.   font: menu;
  53.   list-style-image: none;
  54.   -moz-image-region: auto;
  55.   /* 3px is the default padding value. See the big comment under moz_gtk_check_menu_item_paint()
  56.      in widget/src/gtk2/gtk2drawing.c and bug 406129 for why we're hardcoding this. */
  57.   padding: 0px 3px;
  58. }
  59.  
  60. menuitem[default="true"] {
  61.   font-weight: bold;
  62. }
  63.  
  64. menu[_moz-menuactive="true"],
  65. menuitem[_moz-menuactive="true"] {
  66.   color: -moz-menuhovertext;
  67.   background-color: -moz-menuhover;
  68. }
  69.  
  70. menu[disabled="true"],
  71. menuitem[disabled="true"] {
  72.   color: GrayText;
  73. }
  74.  
  75. menubar > menu {
  76.   padding: 0px 4px;
  77. }
  78.  
  79. menubar > menu[_moz-menuactive="true"] {
  80.   color: MenuText;
  81. }
  82.  
  83. menubar > menu[open] {
  84.   color: -moz-menuhovertext;
  85.   background-color: -moz-menuhover;
  86. }
  87. menuitem.spell-suggestion {
  88.   font-weight:bold;
  89. }
  90.  
  91. /* ::::: menu/menuitems in menulist popups ::::: */
  92.  
  93. .menulist-menupopup > menuitem,
  94. menulist > menupopup > menuitem,
  95. .menulist-menupopup > menu,
  96. menulist > menupopup > menu {
  97.   padding-top: 1px;
  98.   padding-bottom: 1px;
  99.   -moz-padding-start: 1px;
  100.   -moz-padding-end: 30px;
  101.   max-width: none;
  102.   font: message-box;
  103. }
  104.  
  105. /* ..... internal content .... */
  106.  
  107. .menu-text,
  108. .menu-iconic-left,
  109. .menu-iconic-text {
  110.   margin-top: 0px !important;
  111.   margin-bottom: 0px !important;
  112.   -moz-margin-start: 0px !important;
  113.   -moz-margin-end: 2px !important;
  114.   color: inherit;
  115. }
  116.  
  117. .menu-text {
  118.   /* This is (18 + the size of end-padding on .menu-iconic-left)px */
  119.   -moz-margin-start: 21px !important;
  120.   font-weight: inherit;
  121. }
  122.  
  123. .menu-description {
  124.   font-style: italic;
  125.   color: GrayText;
  126.   -moz-margin-start: 1ex !important;
  127. }
  128.  
  129. .menu-accel,
  130. .menu-iconic-accel {
  131.   margin-top: 0px !important;
  132.   margin-bottom: 0px !important;
  133.   -moz-margin-start: 7px !important;
  134.   color: inherit;
  135. }
  136.  
  137. .menu-accel-container {
  138.   -moz-box-pack: end;
  139. }
  140.  
  141. .menu-iconic-left {
  142.   width: 16px;
  143.   /* We can only hardcode this, to make the default GTK icon<->label spacing */
  144.   -moz-padding-end: 3px !important;
  145. }
  146.  
  147. .menu-iconic-icon {
  148.   width: 16px;
  149.   height: 16px;
  150. }
  151.  
  152. .menu-right {
  153.   margin-top: 0px;
  154.   margin-bottom: 0px;
  155.   -moz-margin-start: 6px;
  156.   -moz-margin-end: 0px;
  157.   width: 1ex;
  158.   height: 1ex;
  159.   /* These next two rules are needed to prevent inheritance and thus ugliness */
  160.   list-style-image: none;
  161.   -moz-image-region: auto;
  162.   -moz-appearance: menuarrow;
  163. }
  164.  
  165. .menubar-left {
  166.   margin-top: 0px;
  167.   margin-bottom: 0px;
  168.   -moz-margin-start: 0px;
  169.   -moz-margin-end: 2px;
  170.   color: inherit;
  171. }
  172.  
  173. .menubar-text {
  174.   margin: 0 1px !important;
  175.   color: inherit;
  176. }
  177.  
  178.  
  179. .menulist-menupopup > menuitem > .menu-iconic-left,
  180. menulist > menupopup > menuitem > .menu-iconic-left,
  181. .menulist-menupopup > menu > .menu-iconic-left,
  182. menulist > menupopup > menu > .menu-iconic-left {
  183.   display: none;
  184. }
  185.  
  186. /* ::::: checkbox menuitem ::::: */
  187.  
  188. menuitem[checked="true"] {
  189.   -moz-appearance: checkmenuitem !important;
  190. }
  191.  
  192. menuitem[type="checkbox"] {
  193.   -moz-appearance: checkmenuitem !important;
  194. }
  195.  
  196. /* ::::: radio menuitem ::::: */
  197.  
  198. menuitem[type="radio"] {
  199.   -moz-appearance: radiomenuitem !important;
  200. }
  201.  
  202. /* ::::: menuseparator ::::: */
  203.  
  204. menuseparator {
  205.   -moz-appearance: menuseparator !important;
  206.   margin: 2px 0;
  207.   border-top: 1px solid ThreeDShadow;
  208.   border-bottom: 1px solid ThreeDHighlight;
  209. }
  210.  
  211. menulist > menupopup > menuseparator,
  212. .menulist-menupopup > menuseparator {
  213.   border-top: 1px solid #000000;
  214.   border-bottom: none;
  215. }
  216.  
  217. /* ::::: autocomplete ::::: */
  218.  
  219. .autocomplete-history-popup > menuitem {
  220.   max-width: none !important;
  221.   font: message-box;
  222. }
  223.  
  224. /* ::::: tree column picker ::::: */
  225.  
  226. .treecell-popupcell-menu {
  227.   -moz-margin-start: -2px;
  228.   list-style-image: url("chrome://global/skin/columnselect.gif");
  229.   -moz-image-region: auto;
  230. }
  231.